﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PDFManager.aspx.cs" Inherits="WEALTH.Manager.Customer.PDFManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../css/base.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="../Js/jquery.min.js"></script>
    <script type="text/javascript" src="../Js/vanadium.js"></script>
    <script type="text/javascript" src="../Js/public_Validation.js"></script>
    <link href="../css/admin.global.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.content.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.utils.js"></script>
    <link href="../jBox/Skins/Green/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript">
        // 设置标题
        Index.SetTitle('PDF文件管理');
        function cleartext() {

            jQuery("#txtpdfname").val("");
            return true;
        }       
    </script>
</head>
<body>
    <div class="container">
        <form id="Form1" runat="server">
        <div class="location">
            当前位置：PDF管理 -&gt; PDF文件管理</div>
        <div class="blank10">
        </div>
        <div class="search block">
            <div class="h">
                <span class="icon-sprite icon-list"></span>
                <h3>
                    上传PDF文件</h3>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <div class="search-bar" style="padding-left: -3px;">
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" Text="文件名（PDF）：" runat="server"></asp:Label>
                                    <asp:FileUpload Style="height: 20px" ID="FileUpload1" runat="server" />
                                    <span class="btn-ctl-span">
                                        <asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" /></span>
                                         <span style="color: red">*<span style="color: #000000">上传文件大小限制为 10MB</span></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="blank10">
        </div>
        <div class="search block">
            <div class="h">
                <span class="icon-sprite icon-magnifier"></span>
                <h3>
                    快速搜索</h3>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <div class="search-bar" style="padding-left: -3px;">
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" Text="文件名（PDF）：" runat="server"></asp:Label>
                                    <asp:TextBox ID="txtpdfname" runat="server" CssClass="input-small" MaxLength="250"
                                        Width="253px"></asp:TextBox>
                                </td>
                                <td align="right">
                                    <span class="btn-ctl-span">
                                        <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                                    <span class="btn-ctl-span">
                                        <input type="button" id="btnClear" onclick="cleartext();" value="清空" /></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="blank10">
        </div>
        <div class="block">
            <div class="h">
                <span class="icon-sprite icon-list"></span>
                <h3>
                    PDF信息列表</h3>
                <div class="bar">
                    <span class="btn-ctl-span">
                        <asp:Button ID="btnSubmit" runat="server" Text="删除" OnClick="btnSubmit_Click" /></span>
                </div>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <asp:GridView ID="gvPdf" runat="server" CssClass="data-table" border="0" CellPadding="0"
                        Width="100%" EnableTheming="True" AllowSorting="True" AutoGenerateColumns="False"
                        OnRowDataBound="gvPdf_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvPdf_PageIndexChanging"
                        OnSorting="gvPdf_Sorting" GridLines="None">
                        <Columns>
                            <asp:BoundField DataField="pdfid" SortExpression="pdfid" ItemStyle-Width="4%" ItemStyle-CssClass="l"
                                HeaderText="ID" />
                            <asp:HyperLinkField DataNavigateUrlFields="pdfname" DataTextField="pdfname" HeaderText="文件名"
                                ItemStyle-Width="10%" DataNavigateUrlFormatString="" SortExpression="pdfname"
                                ItemStyle-CssClass="l" />
                            <asp:BoundField DataField="pdfadduser" SortExpression="pdfadduser" ItemStyle-Width="5%"
                                ItemStyle-CssClass="l" HeaderText="添加用户" ReadOnly="True" />
                            <asp:BoundField DataField="pdfadddate" SortExpression="pdfadddate" ItemStyle-Width="4%"
                                ItemStyle-CssClass="c" HeaderText="添加时间" ReadOnly="True" />
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkdelete" runat="server" Checked="false" />
                                </ItemTemplate>
                                <ItemStyle Width="2%"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <script type="text/javascript">
                var pagerUrl = 'Customer/PdfList.aspx?pageIndex={0}';
                Pager.Output(pagerUrl,<%=pageSize %>, <%=pageIndex %>, <%=pageCount %>, <%=recordCount %>); //(urlFormat, pageSize, pageIndex, pageCount, recordCount)
                </script>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
